package com.homedo.odin.solution.model.request.mng.adservings;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;
import org.hibernate.validator.constraints.Range;

@ApiModel(description = "广告发布下架")
@JsonIgnoreProperties(ignoreUnknown = true)
@Data
public class MngAdServingsStatusRequestBean {

    @ApiModelProperty(value = "广告上下架状态", required = true)
    @NotNull(message = "'广告上下架状态，0：已下架，1：上架中'")
    @Range(min = 0, max = 1, message = "'广告上下架状态，0：已下架，1：上架中'")
    private Integer status;

    @ApiModelProperty(value = "广告编号", required = true)
    @NotEmpty(message = "广告编号不能为空")
    private String adNumber;
}
